class UserPropsModel {
  List<UserPropsItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  UserPropsModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  UserPropsModel.fromJson(Map<String, dynamic> json) {
    if (json["list"] is List) {
      list =
          json["list"] == null
              ? null
              : (json["list"] as List)
                  .map((e) => UserPropsItem.fromJson(e))
                  .toList();
    }
    if (json["pageNum"] is num) {
      pageNum = (json["pageNum"] as num).toInt();
    }
    if (json["pageSize"] is num) {
      pageSize = (json["pageSize"] as num).toInt();
    }
    if (json["total"] is num) {
      total = (json["total"] as num).toInt();
    }
    if (json["totalPage"] is num) {
      totalPage = (json["totalPage"] as num).toInt();
    }
  }

  static List<UserPropsModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(UserPropsModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class UserPropsItem {
  int? count;
  String? effectiveDate;
  int? id;
  String? invalidDate;
  int? propId;
  String? propImageUrl;
  String? title;
  String? transferStatus;
  bool? transferable;
  int? userId;

  UserPropsItem({
    this.count,
    this.effectiveDate,
    this.id,
    this.invalidDate,
    this.propId,
    this.propImageUrl,
    this.title,
    this.transferStatus,
    this.transferable,
    this.userId,
  });

  UserPropsItem.fromJson(Map<String, dynamic> json) {
    if (json["count"] is num) {
      count = (json["count"] as num).toInt();
    }
    if (json["effectiveDate"] is String) {
      effectiveDate = json["effectiveDate"];
    }
    if (json["id"] is num) {
      id = (json["id"] as num).toInt();
    }
    if (json["invalidDate"] is String) {
      invalidDate = json["invalidDate"];
    }
    if (json["propId"] is num) {
      propId = (json["propId"] as num).toInt();
    }
    if (json["propImageUrl"] is String) {
      propImageUrl = json["propImageUrl"];
    }
    if (json["title"] is String) {
      title = json["title"];
    }
    if (json["transferStatus"] is String) {
      transferStatus = json["transferStatus"];
    }
    if (json["transferable"] is bool) {
      transferable = json["transferable"];
    }
    if (json["userId"] is num) {
      userId = (json["userId"] as num).toInt();
    }
  }

  static List<UserPropsItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(UserPropsItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["count"] = count;
    _data["effectiveDate"] = effectiveDate;
    _data["id"] = id;
    _data["invalidDate"] = invalidDate;
    _data["propId"] = propId;
    _data["propImageUrl"] = propImageUrl;
    _data["title"] = title;
    _data["transferStatus"] = transferStatus;
    _data["transferable"] = transferable;
    _data["userId"] = userId;
    return _data;
  }
}
